import request from '@/utils/request'

// 查询滞销行动点列表
export function listUnsalablePoint(query) {
  return request({
    url: '/business/unsalablePoint/list',
    method: 'get',
    params: query
  })
}

// 查询滞销行动点详细
export function getUnsalablePoint(id) {
  return request({
    url: '/business/unsalablePoint/' + id,
    method: 'get'
  })
}

// 新增滞销行动点
export function addUnsalablePoint(data) {
  return request({
    url: '/business/unsalablePoint',
    method: 'post',
    data: data
  })
}

// 修改滞销行动点
export function updateUnsalablePoint(data) {
  return request({
    url: '/business/unsalablePoint',
    method: 'put',
    data: data
  })
}

// 删除滞销行动点
export function delUnsalablePoint(id) {
  return request({
    url: '/business/unsalablePoint/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/unsalablePoint/export',
    method: 'post',
    data: data
  })
}
